//
//  DownloadManager.h
//  ImGuider
//
//  Created by llt on 2017/8/4.
//  Copyright © 2017年 AudioCtrip. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MCDownloader.h"

@interface DownloadManager : NSObject

+ (instancetype)sharedManager;

- (MCDownloadReceipt *)downloadReceiptForURLString:(NSString *)URLString;
- (long long )fileSizeForURLString:(NSString *)URLString;

- (void)downloadStatusForModel:(LineModel *)model block:(void(^)(MCDownloadState state,NSInteger completeCount, NSString *unionid))block;

/**
 增加下载
 
 @param lineModel lineModel对象
 */


/**
 增加下载
 
 @param lineModel lineModel对象
 
 */
- (void)addDownloadWithLineModel:(LineModel *)lineModel;


/**
 下载线路下的指定点

 @param lineModel 线路
 @param point 点
 */
- (void)addDownloadWithLineModel:(LineModel *)lineModel point:(ScenicPoint *)point;

/**
 停止下载，删除对象
 
 @param lineModel lineModel对象
 */
- (void)deleteDownloadWithLineModel:(LineModel *)lineModel;

/**
 停止下载，不删除对象
 
 @param lineModel lineModel对象
 */
- (void)pauseWithLineModel:(LineModel *)lineModel;

/**
 开始所有正在下载的
 */
- (void)beginAllDownloading;


@end
